<template>
  <el-form :model="form6" label-width="auto" style="max-width: 1300px;min-width: 1300px">
    <div class="common-layout">
      <el-container>
        <el-main>
          <!--标题-->
          <el-row>
            <el-col :span="24">
              <div class="grid-content ep-bg-purple-dark the_font_is_bold"/>
              <h1 style="font-size: 40px">
                JGH-1000D/1400A/1800B多级干泵装配记录
              </h1>
            </el-col>
          </el-row>
          <!--Case-->
          <el-row>
            <el-col :span="2" style="padding-left: 10px;">
              <div class="grid-content ep-bg-purple"/>
              <span class="fontSize the_font_is_bold">Case</span>
            </el-col>
            <el-col :span="22">
              <el-input
                  v-model="form6.input_Case"
                  style="width: 100%;height: 24px"
                  disabled
                  placeholder="请输入"
                  clearable
              />
            </el-col>
          </el-row>
          <!--标头-->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span class="the_font_is_bold">时间:</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-date-picker
                  v-model="form6.input_Time"
                  style="width: 100%;height: 24px"
                  type="datetime"
                  value-format="YYYY-MM-DD-HH-mm"
                  placeholder="请选择时间"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span class="the_font_is_bold">操作者:</span>

            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_Operator"
                  style="width: 100%;height: 24px"
                  placeholder="请输入"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span class="the_font_is_bold">下泵编号:</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_Lower_pump_number"
                  style="width: 100%;height: 24px"
                  placeholder="请输入"
                  clearable
              />
            </el-col>
          </el-row>
          <!--内容-->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>零件名称</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>检查确认安装</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>合格范围</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>零件名称</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>检查确认安装</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>合格范围</span>
            </el-col>
          </el-row>
          <!-- 1-2 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>齿轮箱底面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_1">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>M12盘泵螺钉</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_2">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
          </el-row>
          <!-- 3-4 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>电机胶圈</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_3">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>弹簧补偿垫圈</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_4">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
          </el-row>
          <!-- 5-6 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>孔用弹簧密封圈</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_5">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>密封套封环</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_6">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
          </el-row>
          <!-- 7-8 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>5级主动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_7_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_7_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>5级从动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_8_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_8_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
          </el-row>
          <!-- 9-10 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>4级主动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_9_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_9_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>4级从动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_10_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_10_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
          </el-row>
          <!-- 11-12 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级主动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_11_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_11_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级从动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_12_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_12_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
          </el-row>
          <!-- 13-14 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级转子顶面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_13">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级腔顶面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_14">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
          </el-row>
          <!-- 15-16 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>2级主动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_15_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_15_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>2级从动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_16_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_16_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
          </el-row>
          <!-- 17-18 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>1级主动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_17_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_17_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>1级从动间隙值</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_18_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_18_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
          </el-row>
          <!-- 19-20 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>转子与1级腔体间隙</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_19_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_19_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>1级转子间间隙</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_20_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_20_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
          </el-row>
          <!-- 21-22 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>五级转子之间间隙</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_21_1"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_21_2"
                  style="width: 100%;height: 24px"
                  clearable
              />
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>胀套</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_22">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
          </el-row>
          <!-- 23-24 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级转子顶面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_23">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级腔顶面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_24">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
          </el-row>
          <!-- 25-26 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级转子顶面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_25">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级腔顶面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_26">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
          </el-row>
          <!-- 27-28 -->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级转子顶面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_27">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span>3级腔顶面是否有高点</span>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <el-radio-group v-model="form6.radio_28">
                <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                </el-radio>
                <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                </el-radio>
              </el-radio-group>
            </el-col>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
            </el-col>
          </el-row>
          <!--备注-->
          <el-row>
            <el-col :span="4">
              <div class="grid-content ep-bg-purple"/>
              <span class="fontSize the_font_is_bold">备&nbsp;注</span>
            </el-col>
            <el-col :span="20">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form6.input_Remarks"
                  style="width: 100%;"
                  placeholder="备注"
                  clearable
              />
            </el-col>
          </el-row>
        </el-main>
      </el-container>
      <el-button type="success" plain @click="submit6()">提交</el-button>
    </div>
  </el-form>
</template>

<script setup lang="ts">
import {defineProps, reactive, watch} from "vue";
import axios from "axios";
import {ElMessage} from "element-plus";
const props = defineProps({
  CaseValue: {
    type: String,
    default: ''
  }
});
//表头
const formHead = reactive({
  work_order : '',
  material_No : '',
  name : '',
  pump_Unit_Number : '',
  case : '',
  customer : '',
  spawn_time : '',
  production_quantity : '',
  number_of_downlines : '',
  state : '',
  start_time : '',
  end_time : '',
  production_processes_1 : false,
  production_processes_2 : false,
  production_processes_3 : false,
  production_processes_4 : false,
  production_processes_5 : false,
  production_processes_6 : false,
  production_processes_7 : false,
  production_processes_8 : false,
  production_processes_9 : false,
  production_processes_10 : false,
  urgent : false,
});
watch(() => props.CaseValue, (newVal) => {
  if(newVal != null && newVal !== ""){
    resetFormData(newVal)
  }
});
function resetFormData(newVal){
  axios.get('http://192.168.110.84:8081/staff/gongxuData/byCase/' + newVal)
      .then(response => {
        // 请求成功后的处理
        const data = response.data.data;
        if (response.data.code === 1) {
          if(data !== null){
            // 遍历data对象并更新form
            console.log(data)
            Object.keys(data).forEach(key => {
              formHead[key] = data[key];
            })
            form6.input_Case = formHead.case
          }else {
            resetForm();
          }
        } else {
          ElMessage.error(response.data.message)
        }
      });
}
function resetForm(){
  formHead.work_order = '';
  formHead.material_No = '';
  formHead.name = '';
  formHead.pump_Unit_Number = '';
  formHead.case = '';
  formHead.customer = '';
  formHead.spawn_time = '';
  formHead.production_quantity = '';
  formHead.number_of_downlines = '';
  formHead.state = '';
  formHead.start_time = '';
  formHead.end_time = '';
  formHead.production_processes_1 = false;
  formHead.production_processes_2 = false;
  formHead.production_processes_3 = false;
  formHead.production_processes_4 = false;
  formHead.production_processes_5 = false;
  formHead.production_processes_6 = false;
  formHead.production_processes_7 = false;
  formHead.production_processes_8 = false;
  formHead.production_processes_9 = false;
  formHead.production_processes_10 = false;
  formHead.urgent = false
}
const form6 = reactive({
  input_Case: "",/*Case*/
  input_Time: "",/*时间*/
  input_Operator: "",/*操作者*/
  input_Lower_pump_number: "",/*下泵编号*/

  radio_1: "",/*齿轮箱底面是否有高点 - 检查确认安装*/
  radio_2: "",/*M12盘泵螺钉 - 检查确认安装*/
  radio_3: "",/*电机胶圈 - 检查确认安装*/
  radio_4: "",/*弹簧补偿垫圈 - 检查确认安装*/
  radio_5: "",/*孔用弹簧密封圈 - 检查确认安装*/
  radio_6: "",/*密封套封环 - 检查确认安装*/

  input_7_1: "",/*5级主动间隙值 - 检查确认安装*/
  input_7_2: "",/*5级主动间隙值 - 合格范围*/
  input_8_1: "",/*5级从动间隙值 - 检查确认安装*/
  input_8_2: "",/*5级从动间隙值 - 合格范围*/
  input_9_1: "",/*4级主动间隙值 - 检查确认安装*/
  input_9_2: "",/*4级主动间隙值 - 合格范围*/
  input_10_1: "",/*4级从动间隙值 - 检查确认安装*/
  input_10_2: "",/*4级从动间隙值 - 合格范围*/
  input_11_1: "",/*3级从动间隙值 - 检查确认安装*/
  input_11_2: "",/*3级从动间隙值 - 合格范围*/
  input_12_1: "",/*3级从动间隙值 - 检查确认安装*/
  input_12_2: "",/*3级从动间隙值 - 合格范围*/

  radio_13: "",/*3级转子顶面是否有高点 - 检查确认安装*/
  radio_14: "",/*3级腔顶面是否有高点 - 检查确认安装*/

  input_15_1: "",/*2级主动间隙值 - 检查确认安装*/
  input_15_2: "",/*2级主动间隙值 - 合格范围*/
  input_16_1: "",/*2级从动间隙值 - 检查确认安装*/
  input_16_2: "",/*2级从动间隙值 - 合格范围*/
  input_17_1: "",/*1级主动间隙值 - 检查确认安装*/
  input_17_2: "",/*1级主动间隙值 - 合格范围*/
  input_18_1: "",/*1级从动间隙值 - 检查确认安装*/
  input_18_2: "",/*1级从动间隙值 - 合格范围*/
  input_19_1: "",/*转子与1级腔体间隙 - 检查确认安装*/
  input_19_2: "",/*转子与1级腔体间隙 - 合格范围*/
  input_20_1: "",/*1级转子间间隙 - 检查确认安装*/
  input_20_2: "",/*1级转子间间隙 - 合格范围*/
  input_21_1: "",/*五级转子之间间隙 - 检查确认安装*/
  input_21_2: "",/*五级转子之间间隙 - 合格范围*/

  radio_22: "",/*胀套 - 检查确认安装*/
  radio_23: "",/*水冷块  导热硅脂 - 检查确认安装*/
  radio_24: "",/*1级腔进气口胶圈 - 检查确认安装*/
  radio_25: "",/*排气管胶圈 - 检查确认安装*/
  radio_26: "",/*润滑油/油量 - 检查确认安装*/
  radio_27: "",/*上泵是否与下泵连接牢固 - 检查确认安装*/
  radio_28: "",/*五级腔体气路胶圈更换 - 检查确认安装*/

  input_Remarks: "",/*备注*/
})
const submit6 = function () {
  axios.post('http://192.168.110.84:8081/part6/add', form6)
      .then(response => {
        // 请求成功后的处理
        console.log(response.data);
        if (response.data.code === 1) {
          ElMessage({
            message: response.data.data,
            type: 'success',
          })
          resetForm6()
          TFValueReturn();
        }else {
          ElMessage.error(response.data.message)
        }
      });
}
function resetForm6() {
  form6.input_Case = ""; /* Case */
  form6.input_Time = ""; /* 时间 */
  form6.input_Operator = ""; /* 操作者 */
  form6.input_Lower_pump_number = ""; /* 下泵编号 */

  form6.radio_1 = ""; /* 齿轮箱底面是否有高点 - 检查确认安装 */
  form6.radio_2 = ""; /* M12盘泵螺钉 - 检查确认安装 */
  form6.radio_3 = ""; /* 电机胶圈 - 检查确认安装 */
  form6.radio_4 = ""; /* 弹簧补偿垫圈 - 检查确认安装 */
  form6.radio_5 = ""; /* 孔用弹簧密封圈 - 检查确认安装 */
  form6.radio_6 = ""; /* 密封套封环 - 检查确认安装 */

  form6.input_7_1 = ""; /* 5级主动间隙值 - 检查确认安装 */
  form6.input_7_2 = ""; /* 5级主动间隙值 - 合格范围 */
  form6.input_8_1 = ""; /* 5级从动间隙值 - 检查确认安装 */
  form6.input_8_2 = ""; /* 5级从动间隙值 - 合格范围 */
  form6.input_9_1 = ""; /* 4级主动间隙值 - 检查确认安装 */
  form6.input_9_2 = ""; /* 4级主动间隙值 - 合格范围 */
  form6.input_10_1 = ""; /* 4级从动间隙值 - 检查确认安装 */
  form6.input_10_2 = ""; /* 4级从动间隙值 - 合格范围 */
  form6.input_11_1 = ""; /* 3级从动间隙值 - 检查确认安装 */
  form6.input_11_2 = ""; /* 3级从动间隙值 - 合格范围 */
  form6.input_12_1 = ""; /* 3级从动间隙值 - 检查确认安装 */
  form6.input_12_2 = ""; /* 3级从动间隙值 - 合格范围 */

  form6.radio_13 = ""; /* 3级转子顶面是否有高点 - 检查确认安装 */
  form6.radio_14 = ""; /* 3级腔顶面是否有高点 - 检查确认安装 */

  form6.input_15_1 = ""; /* 2级主动间隙值 - 检查确认安装 */
  form6.input_15_2 = ""; /* 2级主动间隙值 - 合格范围 */
  form6.input_16_1 = ""; /* 2级从动间隙值 - 检查确认安装 */
  form6.input_16_2 = ""; /* 2级从动间隙值 - 合格范围 */
  form6.input_17_1 = ""; /* 1级主动间隙值 - 检查确认安装 */
  form6.input_17_2 = ""; /* 1级主动间隙值 - 合格范围 */
  form6.input_18_1 = ""; /* 1级从动间隙值 - 检查确认安装 */
  form6.input_18_2 = ""; /* 1级从动间隙值 - 合格范围 */
  form6.input_19_1 = ""; /* 转子与1级腔体间隙 - 检查确认安装 */
  form6.input_19_2 = ""; /* 转子与1级腔体间隙 - 合格范围 */
  form6.input_20_1 = ""; /* 1级转子间间隙 - 检查确认安装 */
  form6.input_20_2 = ""; /* 1级转子间间隙 - 合格范围 */
  form6.input_21_1 = ""; /* 五级转子之间间隙 - 检查确认安装 */
  form6.input_21_2 = ""; /* 五级转子之间间隙 - 合格范围 */

  form6.radio_22 = ""; /* 胀套 - 检查确认安装 */
  form6.radio_23 = ""; /* 水冷块 导热硅脂 - 检查确认安装 */
  form6.radio_24 = ""; /* 1级腔进气口胶圈 - 检查确认安装 */
  form6.radio_25 = ""; /* 排气管胶圈 - 检查确认安装 */
  form6.radio_26 = ""; /* 润滑油/油量 - 检查确认安装 */
  form6.radio_27 = ""; /* 上泵是否与下泵连接牢固 - 检查确认安装 */
  form6.radio_28 = ""; /* 五级腔体气路胶圈更换 - 检查确认安装 */

  form6.input_Remarks = ""; /* 备注 */
}

/*调用父方法*/
import { inject } from 'vue';
const TFValueReturn = inject('TFValueReturn');
</script>

<style scoped>
.el-col {
  border: black 1px solid;
}

.text_is_vertical {
  writing-mode: vertical-lr; /* 从上到下竖直排列文字 */
  text-orientation: mixed; /* 保持字符的原始方向 */
}

.fontSize {
  font-size: 20px;
}

.smallOptions {
  height: 20px;
}

.text_is_on_the_left {
  text-align: left;
}

.the_font_is_bold {
  font-weight: bold;
}

.demo-datetime-picker {
  display: flex;
  width: 100%;
  padding: 0;
  flex-wrap: wrap;
}

.demo-datetime-picker .block {
  padding: 30px 0;
  text-align: center;
  border-right: solid 1px var(--el-border-color);
  flex: 1;
}

.demo-datetime-picker .block:last-child {
  border-right: none;
}

.demo-datetime-picker .demonstration {
  display: block;
  color: var(--el-text-color-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}
</style>